-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blacklist for skipping tests or test folders in different environments. #110
Conversation
i'd vote for ~david |
yeah, I think |
Yea, 'exclude' does sound like a better name for it... 'blacklist' is rather vague come to think of it. Concerning #107 : Would that require that we have a separate folder for every unique set of tests on each environment? We have a large amount of tests on a large amount of environments, and having individual src_folders might get really big. Also, that would break the DRY principle many times. What do you think? |
Changed to exclude:
If you think this is a good idea, could you take a look at line#330 & 331 to see if I'm finding the current test folder correctly? |
Ok, maybe the Secondly, it would be nice if the files and directories could be combined into one array and be specified using glob expressions, like the What do you think? Sorry if I'm being too painstaking here. |
I'll look into those changes - still new to your codebase and the patterns you like to follow, so I don't mind :) |
* 'master' of github.com:beatfactor/nightwatch: added command timers to show how long it took a command to run in ms fixed a small issue with showing output when disabled moved the test into protocol actions moved the path resolve into index and a few other small refactoring Added exclude tests option based on #110 The screenshot path in junit must be absolute fixed typo in example style(jshint): satisfy "W004: 'prop' is already defined." style(jshint): satisfy "W033: Missing semicolon" style(jshint): satisfy "W109: Strings must use singlequote." style(white): fix trailing whitespaces Allowing client API to use the keys command from the Selenium protocol.
I've implemented the exclude option in 0.4.9. I did it a bit differently so I couldn't use your pull request, I hope you don't mind too much. Here's how it works: You can specify an array of folders or patterns to match files, all in the same list: "exclude" : ["excluded-folder"] or files: "exclude" : ["tests/src/files-*", "tests/src/other-files*"] or combined: "exclude" : ["tests/src/files-*", "tests/src/exclude-folder"] |
That's great! I don't mind at all that you didn't use my PR. You know your code better than anyone. Thanks again for this feature. |
This is a possible feature for ticket #107; It adds the ability to skip tests based upon the following blacklist in the settings.json: