Expand description

test_with provides env, file, path, http, https, icmp, tcp, root, group, user, mem, swap, cpu_core, phy_core macros to help you run test case only with the condition is fulfilled. If the #[test] is absent for the test case, #[test_with] will add it to the test case automatically.

Attribute Macros

Run test case when cpu core enough

Run test case when the environment variable is set.

Run test case when the file exist.

Run test case when runner in group

Run test case when the http service exist.

Run test case when the https service exist.

Run test case when the server online. Please make sure the role of test case runner have capability to open socket

Run test case when memory size enough

Run test case when the path(file or folder) exist.

Run test case when physical cpu core enough

Run test case when runner is root

Run test case when swap size enough

Run test case when socket connected

Run test case when runner is specific user