frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Go 1.22, SQLite, and Next.js: The "Boring" Back End

https://mohammedeabdelaziz.github.io/articles/go-next-pt-2
1•mohammede•4m ago•0 comments

Laibach the Whistleblowers [video]

https://www.youtube.com/watch?v=c6Mx2mxpaCY
1•KnuthIsGod•5m ago•1 comments

I replaced the front page with AI slop and honestly it's an improvement

https://slop-news.pages.dev/slop-news
1•keepamovin•10m ago•1 comments

Economists vs. Technologists on AI

https://ideasindevelopment.substack.com/p/economists-vs-technologists-on-ai
1•econlmics•12m ago•0 comments

Life at the Edge

https://asadk.com/p/edge
1•tosh•18m ago•0 comments

RISC-V Vector Primer

https://github.com/simplex-micro/riscv-vector-primer/blob/main/index.md
2•oxxoxoxooo•21m ago•1 comments

Show HN: Invoxo – Invoicing with automatic EU VAT for cross-border services

2•InvoxoEU•22m ago•0 comments

A Tale of Two Standards, POSIX and Win32 (2005)

https://www.samba.org/samba/news/articles/low_point/tale_two_stds_os2.html
2•goranmoomin•25m ago•0 comments

Ask HN: Is the Downfall of SaaS Started?

3•throwaw12•26m ago•0 comments

Flirt: The Native Backend

https://blog.buenzli.dev/flirt-native-backend/
2•senekor•28m ago•0 comments

OpenAI's Latest Platform Targets Enterprise Customers

https://aibusiness.com/agentic-ai/openai-s-latest-platform-targets-enterprise-customers
1•myk-e•31m ago•0 comments

Goldman Sachs taps Anthropic's Claude to automate accounting, compliance roles

https://www.cnbc.com/2026/02/06/anthropic-goldman-sachs-ai-model-accounting.html
2•myk-e•33m ago•4 comments

Ai.com bought by Crypto.com founder for $70M in biggest-ever website name deal

https://www.ft.com/content/83488628-8dfd-4060-a7b0-71b1bb012785
1•1vuio0pswjnm7•34m ago•1 comments

Big Tech's AI Push Is Costing More Than the Moon Landing

https://www.wsj.com/tech/ai/ai-spending-tech-companies-compared-02b90046
4•1vuio0pswjnm7•36m ago•0 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
2•1vuio0pswjnm7•38m ago•0 comments

Suno, AI Music, and the Bad Future [video]

https://www.youtube.com/watch?v=U8dcFhF0Dlk
1•askl•40m ago•2 comments

Ask HN: How are researchers using AlphaFold in 2026?

1•jocho12•43m ago•0 comments

Running the "Reflections on Trusting Trust" Compiler

https://spawn-queue.acm.org/doi/10.1145/3786614
1•devooops•47m ago•0 comments

Watermark API – $0.01/image, 10x cheaper than Cloudinary

https://api-production-caa8.up.railway.app/docs
1•lembergs•49m ago•1 comments

Now send your marketing campaigns directly from ChatGPT

https://www.mail-o-mail.com/
1•avallark•53m ago•1 comments

Queueing Theory v2: DORA metrics, queue-of-queues, chi-alpha-beta-sigma notation

https://github.com/joelparkerhenderson/queueing-theory
1•jph•1h ago•0 comments

Show HN: Hibana – choreography-first protocol safety for Rust

https://hibanaworks.dev/
5•o8vm•1h ago•1 comments

Haniri: A live autonomous world where AI agents survive or collapse

https://www.haniri.com
1•donangrey•1h ago•1 comments

GPT-5.3-Codex System Card [pdf]

https://cdn.openai.com/pdf/23eca107-a9b1-4d2c-b156-7deb4fbc697c/GPT-5-3-Codex-System-Card-02.pdf
1•tosh•1h ago•0 comments

Atlas: Manage your database schema as code

https://github.com/ariga/atlas
1•quectophoton•1h ago•0 comments

Geist Pixel

https://vercel.com/blog/introducing-geist-pixel
2•helloplanets•1h ago•0 comments

Show HN: MCP to get latest dependency package and tool versions

https://github.com/MShekow/package-version-check-mcp
1•mshekow•1h ago•0 comments

The better you get at something, the harder it becomes to do

https://seekingtrust.substack.com/p/improving-at-writing-made-me-almost
2•FinnLobsien•1h ago•0 comments

Show HN: WP Float – Archive WordPress blogs to free static hosting

https://wpfloat.netlify.app/
1•zizoulegrande•1h ago•0 comments

Show HN: I Hacked My Family's Meal Planning with an App

https://mealjar.app
1•melvinzammit•1h ago•0 comments
Open in hackernews

DevEco Testing: Official Automation Testing Tool for HarmonyOS Applications

1•moyantianwang•8mo ago
# DevEco Testing: Official Automation Testing Tool for HarmonyOS Applications

 

> These notes provide a high-level overview and may contain inaccuracies. For detailed information, please refer to the official documentation.

## 1. Test Framework Architecture

DevEco Testing is built on the JUnit5 extension mechanism and adopts a layered testing strategy:

1. Unit Testing Layer: Covers business logic components (Service/Manager)

2. Component Testing Layer: Validates Ability/Extension functionalities

3. System Testing Layer: Verifies multi-device collaborative scenarios

Core capabilities include:

* ArkTS Test Engine: Supports asynchronous task validation

* Device Shadow Mode: Simulates multi-device collaborative environments

* Data Sandbox: Isolates test data from production environments

## 2. Unit Testing Implementation

### 1. Test Case Specifications

``` typescript ```

``` // Example: Asynchronous Task Validation @Test async function testAsyncTask() { const result = await DataService.fetchData(); assertEquals(result.code, 200); assertTrue(Array.isArray(result.data)); } ```

### 2. Mock Service Configuration

Dependency isolation using @Mock annotations:

``` typescript ```

``` // Mock network service @Mock class NetworkService { @InjectMock async fetchData(): Promise<Data> { return { code: 200, data: mockData }; } } ```

### 3. Test Coverage

Line-level coverage reporting:

``` markdown ```

``` ------------------------- Test Coverage Report ------------------------- Module | Line Coverage | Branch Coverage ----------------------------------------------- CoreService | 82% | 75% UIComponent | 91% | 88% NetworkModule | 67% | 63% ```

## 3. UI Automation Testing

### 1. Component Localization Strategies

| Strategy | Use Case | Example Code | | :---------- | :----------------------- | :-------------------------------------------- | | resource-id | Stable element ID | component.findComponentById('btn_submit') | | text | Dynamic content matching | component.findComponentsByText('Submit') | | xpath | Complex hierarchy | component.findByXPath('//[@text="Confirm"]') |

### 2. Gesture Simulation

``` typescript ```

``` // Swipe Operation Example test('Swipe Test', async () => { await gesture.swipe({ startX: 500, startY: 1500, endX: 500, endY: 500, duration: 800 }); await expect(component).toHaveText('New Content'); }); ```

### 3. Exception Scenarios

Network fluctuation simulation: device.simulateNetwork('3G')

* Memory pressure testing: device.fillMemory(80%)

* Low battery testing: device.setBatteryLevel(15%)

## 4. CI/CD Integration

### 1. Pipeline Configuration

``` yaml ```

``` # devops-ci.yaml stages: - name: unit-test script: - npm run build - npm run test:unit -- --coverage

  - name: ui-test
    device:
      type: emulator
      config: phone_2k
    script:
      - npm run test:ui -- --headless
```

### 2. Test Reporting

Output formats:

``` bash ```

``` test-results/ ├── junit.xml # CI system integration └── report.html # Visual analysis report ```

##