Filter tests effectively

Answered

I want to import list of failed tests. Couple questions

- what is XML schema of the testsession document, is there any documentation for it?
- is there a way to filter the tests with regex? some plugin perhaps?
- is there a documentation how to make said plugin myself?

0
2 comments

Hi, @Vmachacek. Can you provide more information about how you want to do this via a program or create an IDEA plugin?

The test file schema isn't published. It's used internally.

You may check the code for IDEA Community Edition about this:

Export test result:

https://github.com/JetBrains/intellij-community/blob/master/platform/testRunner/src/com/intellij/execution/testframework/export/ExportTestResultsAction.java

Import Tests from File:

https://github.com/JetBrains/intellij-community/blob/master/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsFromFileAction.java 

0

Hello Mr Liu, I want our CI/CD pipeline when it finds failed tests to generate file which can be imported to IDE with as low friction as possible. I will check the Java import code, thanks!

0

Please sign in to leave a comment.