README.md in knapsack_pro-2.15.0 vs README.md in knapsack_pro-2.16.0

- old
+ new

@@ -791,49 +791,13 @@ #### Info for CircleCI users If you are using circleci.com you can omit `KNAPSACK_PRO_CI_NODE_TOTAL` and `KNAPSACK_PRO_CI_NODE_INDEX`. Knapsack Pro will use `CIRCLE_NODE_TOTAL` and `CIRCLE_NODE_INDEX` provided by CircleCI. -Here is an example for test configuration in your `circleci.yml` file. +Here is an example for test configuration in your `.circleci/config.yml` file. ```yaml -# CircleCI 1.0 - -machine: - environment: - # Tokens should be set in CircleCI settings to avoid expose tokens in build logs - # KNAPSACK_PRO_TEST_SUITE_TOKEN_RSPEC: rspec-token - # KNAPSACK_PRO_TEST_SUITE_TOKEN_CUCUMBER: cucumber-token - # KNAPSACK_PRO_TEST_SUITE_TOKEN_MINITEST: minitest-token - # KNAPSACK_PRO_TEST_SUITE_TOKEN_TEST_UNIT: test-unit-token - # KNAPSACK_PRO_TEST_SUITE_TOKEN_SPINACH: spinach-token -test: - override: - # Step for RSpec - - bundle exec rake knapsack_pro:rspec: - parallel: true # Caution: there are 8 spaces indentation! - - # Step for Cucumber - - bundle exec rake knapsack_pro:cucumber: - parallel: true # Caution: there are 8 spaces indentation! - - # Step for Minitest - - bundle exec rake knapsack_pro:minitest: - parallel: true # Caution: there are 8 spaces indentation! - - # Step for test-unit - - bundle exec rake knapsack_pro:test_unit: - parallel: true # Caution: there are 8 spaces indentation! - - # Step for Spinach - - bundle exec rake knapsack_pro:spinach: - parallel: true # Caution: there are 8 spaces indentation! -``` - -Here is another example for CircleCI 2.0 platform. - -```yaml # CircleCI 2.0 # some tests that are not balanced and executed only on first CI node - run: case $CIRCLE_NODE_INDEX in 0) npm test ;; esac @@ -864,11 +828,11 @@ Please remember to add additional containers for your project in CircleCI settings. ##### CircleCI and knapsack_pro Queue Mode -If you use knapsack_pro Queue Mode with CircleCI you may want to [collect metadata](https://circleci.com/docs/1.0/test-metadata/#metadata-collection-in-custom-test-steps) like junit xml report about your RSpec test suite. +If you use knapsack_pro Queue Mode with CircleCI you may want to [collect metadata](https://circleci.com/docs/2.0/collect-test-data/#metadata-collection-in-custom-test-steps) like junit xml report about your RSpec test suite. Here you can read how to configure [junit formatter](https://knapsackpro.com/faq/question/how-to-use-junit-formatter#how-to-use-junit-formatter-with-knapsack_pro-queue-mode). Step for CircleCI is to copy the xml report to `$CIRCLE_TEST_REPORTS` directory. Below is full config for your `spec_helper.rb`: ```ruby # spec_helper.rb or rails_helper.rb @@ -910,9 +874,11 @@ path: /tmp/test-results - store_artifacts: path: /tmp/test-results destination: test-results ``` + +You can find a complete CircleCI YML config example in [the article](https://docs.knapsackpro.com/2021/rspec-testing-parallel-jobs-with-circleci-and-junit-xml-report). #### Info for Travis users You can parallelize your builds across virtual machines with [travis matrix feature](http://docs.travis-ci.com/user/speeding-up-the-build/#parallelizing-your-builds-across-virtual-machines). Edit `.travis.yml`