Skip to content

JOT can now fail test cases when a sensor fires

Latest
Compare
Choose a tag to compare
@planetlevel planetlevel released this 01 Dec 01:54
· 54 commits to master since this release

The big new feature is that you can now use JOT to fail a test case if a sensor fires. This means you can use JOT to enforce development policies in a very developer-friendly way. For example, to fail any tests that cause a native process to be started, you can use a banned-methods JOT like this...

  • name: "banned-methods"
    description: "Fails any JUnit tests that cause banned methods to be invoked"
    methods:
    • "java.lang.ProcessBuilder."
    • ....
      scopes:
    • "org.junit.platform.commons.util.ReflectionUtils.invokeMethod"
      exception: "Banned methods are prohibited by Security Directive 27B/6"

We also updated the open source libraries used by JOT.