Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build ACAT

on:
push:
branches: [ "master" ]
workflow_dispatch:

permissions:
Expand All @@ -28,35 +26,44 @@ jobs:
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2

# Restore NuGet packages before building.
# Note: Some BCI extension projects require proprietary packages (UnicornDotNet, AcatCameraNative)
# not available on nuget.org; restore and build for those projects will fail gracefully.
- name: Restore dependencies
run: dotnet restore ACAT.sln
working-directory: src/
continue-on-error: true

# Build the full application
- name: Build the Solution
run: |
msbuild acat.sln /t:Build /p:Configuration=${{ matrix.configuration }}
msbuild ACAT.sln /t:Build /p:Configuration=${{ matrix.configuration }}
working-directory: src/
continue-on-error: true

# Execute all test projects
- name: Run Unit Tests - Logging
run: |
dotnet test Libraries/ACATCore.Tests.Logging/ACATCore.Tests.Logging.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=logging-tests.trx" --logger "console;verbosity=normal" --no-build --results-directory TestResults
dotnet test Libraries/ACATCore.Tests.Logging/ACATCore.Tests.Logging.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=logging-tests.trx" --logger "console;verbosity=normal" --results-directory TestResults
working-directory: src/
continue-on-error: false

- name: Run Unit Tests - Configuration
run: |
dotnet test Libraries/ACATCore.Tests.Configuration/ACATCore.Tests.Configuration.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=configuration-tests.trx" --logger "console;verbosity=normal" --no-build --results-directory TestResults
dotnet test Libraries/ACATCore.Tests.Configuration/ACATCore.Tests.Configuration.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=configuration-tests.trx" --logger "console;verbosity=normal" --results-directory TestResults
working-directory: src/
continue-on-error: false

- name: Run Integration Tests
run: |
dotnet test Libraries/ACATCore.Tests.Integration/ACATCore.Tests.Integration.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=integration-tests.trx" --logger "console;verbosity=normal" --no-build --results-directory TestResults
dotnet test Libraries/ACATCore.Tests.Integration/ACATCore.Tests.Integration.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=integration-tests.trx" --logger "console;verbosity=normal" --results-directory TestResults
working-directory: src/
continue-on-error: false

- name: Run ConfigMigrationTool Tests
run: |
dotnet test Applications/ConfigMigrationTool/ACAT.ConfigMigrationTool.Tests/ACAT.ConfigMigrationTool.Tests.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=migration-tests.trx" --logger "console;verbosity=normal" --no-build --results-directory TestResults
dotnet test Applications/ConfigMigrationTool/ACAT.ConfigMigrationTool.Tests/ACAT.ConfigMigrationTool.Tests.csproj --configuration ${{ matrix.configuration }} --logger "trx;LogFileName=migration-tests.trx" --logger "console;verbosity=normal" --results-directory TestResults
working-directory: src/
continue-on-error: false

Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read
checks: write
pull-requests: write

jobs:

test:

runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Run ACATCore.Tests.Logging
run: >
dotnet test Libraries/ACATCore.Tests.Logging/ACATCore.Tests.Logging.csproj
--configuration Debug
--logger "trx;LogFileName=logging-results.trx"
--results-directory TestResults/
working-directory: src/

- name: Run ACATCore.Tests.Configuration
run: >
dotnet test Libraries/ACATCore.Tests.Configuration/ACATCore.Tests.Configuration.csproj
--configuration Debug
--logger "trx;LogFileName=config-results.trx"
--results-directory TestResults/
working-directory: src/

- name: Run ACATCore.Tests.Integration
run: >
dotnet test Libraries/ACATCore.Tests.Integration/ACATCore.Tests.Integration.csproj
--configuration Debug
--logger "trx;LogFileName=integration-results.trx"
--results-directory TestResults/
working-directory: src/

- name: Run ACAT.ConfigMigrationTool.Tests
run: >
dotnet test Applications/ConfigMigrationTool/ACAT.ConfigMigrationTool.Tests/ACAT.ConfigMigrationTool.Tests.csproj
--configuration Debug
--logger "trx;LogFileName=migration-results.trx"
--results-directory TestResults/
working-directory: src/

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: src/TestResults/

- name: Publish test results
uses: dorny/test-reporter@v1
if: always()
with:
name: Test Results
path: src/TestResults/*.trx
reporter: dotnet-trx
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Official release of ACAT is available [here](https://github.com/intel/acat/releases)

[![Build](https://github.com/intel/acat/actions/workflows/build.yml/badge.svg)](https://github.com/intel/acat/actions/workflows/build.yml)
[![Tests](https://github.com/intel/acat/actions/workflows/test.yml/badge.svg)](https://github.com/intel/acat/actions/workflows/test.yml)

## Background
The Assistive Context-Aware Toolkit (ACAT) is an open-source platform created at Intel Labs. It is designed to enhance communication for individuals with restricted speech and typing capabilities. It achieves this by providing functionalities like keyboard simulation, word/sentence prediction, and speech synthesis.

Expand Down
26 changes: 0 additions & 26 deletions Tests/ACAT.Integration.Tests/ACAT.Integration.Tests.csproj

This file was deleted.

138 changes: 0 additions & 138 deletions Tests/ACAT.Integration.Tests/Harness/UITestHarness.cs

This file was deleted.

Loading
Loading