简体   繁体   中英

How to organize webdriver and chimp tests

I have a lot of acceptance test suites using chimp, webdriver, and mocha for my meteor project. I need them to run in a specific order, as some are dependent on others. I was able to do this in a shell script, that calls

chimp --mocha --path=/path_to_first_test \
path_to_second_test \
path_to_third_test

I am wondering if there's a better way to do this? Does anyone know if either webdriver or chimp have a tool that does this, or if there is another tool that works with them that I could use? I wasn't able to find any.

You should never have tests that depend on each other. You need to build your test suite in such a way that each test can run independent.

If you need to jump to a certain part of your journey, then build in the code that allows you to do that using fixtures and test-specific code.

If you insist however, then you can pass in chimp individual feature files on the command line and it should run them in sequence

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM