Ceedling Demo


To jest projekt testowy.

Kroki do wykonania:

  1. W katalogu Projekty uruchamiasz komende:

    ceedling new MyProject
    
  2. Dodajesz .gitignore [build/] i README.md

  3. Konfiguracja vscode

    • c_cpp_properties.json
    {
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "/var/lib/gems/2.7.0/gems/ceedling-0.30.0/vendor/unity/src/",
                "/var/lib/gems/2.7.0/gems/ceedling-0.30.0/vendor/cmock/src"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c99",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "gcc-x64"
        }
    ],
    "version": 4
    }
    
    • launch.json [Debuger]
    {
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Ceedling Test Explorer Debug",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/build/test/out/${command:ceedlingExplorer.debugTestExecutable}",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "miDebuggerPath": "/usr/bin/gdb"
        }
    ]
    }
    
    • settings.json tutaj nazwa musi być taka sama jak w launch.json
    {
    "ceedlingExplorer.debugConfiguration": "Ceedling Test Explorer Debug"
    }
    
    • project.yml [xml_tests_report dodać]
    :plugins:
    :load_paths:
        - "#{Ceedling.load_path}"
    :enabled:
        - stdout_pretty_tests_report
        - module_generator
        - xml_tests_report
    
  4. Dodać Makfile

  5. git

git add .
git commit -m "init commit"
git remote add gitea <url>
git push gitea master
git checkout -b new_feature

Powinno być gotowe do pracy

Description
No description provided
Readme 38 KiB
Languages
Makefile 60.8%
C 39.2%