• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import hilog from '@ohos.hilog';
2import testNapi from 'libentry.so';
3import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
4
5export default function [abilitytest_name_replace]abilityTest() {
6  describe('[abilitytest_name_replace]ActsAbilityTest', () => {
7    // Defines a test suite. Two parameters are supported: test suite name and test suite function.
8    beforeAll(() => {
9      // Presets an action, which is performed only once before all test cases of the test suite start.
10      // This API supports only one parameter: preset action function.
11    })
12    beforeEach(() => {
13      // Presets an action, which is performed before each unit test case starts.
14      // The number of execution times is the same as the number of test cases defined by **it**.
15      // This API supports only one parameter: preset action function.
16    })
17    afterEach(() => {
18      // Presets a clear action, which is performed after each unit test case ends.
19      // The number of execution times is the same as the number of test cases defined by **it**.
20      // This API supports only one parameter: clear action function.
21    })
22    afterAll(() => {
23      // Presets a clear action, which is performed after all test cases of the test suite end.
24      // This API supports only one parameter: clear action function.
25    })
26
27  })
28}