Git Product home page Git Product logo

baseproject's Introduction

BaseProject-Cpp

Build Status codecov

分組專題基本樣板(C++)

Structure

.
├── ...
├── doc                     # Documentation
├── diagrams                # UML Diagrams
├── src                     # Application sources
├── test                    # Test sources
└── ...

介紹

1081 逢甲軟體工程課程使用的專題基礎專案。請使用 Code::Blocks 開發

特色

  • 使用 Code::Blocks 開發,適合初學者
  • 僅使用內建的 assert 測試,適合初學者入門,缺點是寫測試較麻煩 (其實本來想用 Google Test)
  • 使用 cbp2make 將 Code::Blocks 專案轉換成 Makefile,讓專案能夠在 Travis CI 編譯與測試,並在 Codecov 顯示覆蓋率報告
  • 使用 gcov 作為覆蓋率報告工具 (這個由 Codecov 自動處理)
  • 多提供 Test 組態,方便執行測試

技術細節

Test 組態

  • 編譯器選項:-ftest-coverage -fprofile-arcs
  • 連結器選項:-lgcov --coverage
  • 前置處理器定義:TEST

Test Code 寫法

  • 主程式 src/main.cpp 的 main function 要用 #ifndef TEST#endif 包裹
  • 測試的 code 請寫在 test/TestMain.cpp
  • test/TestMain.cpp 如果要呼叫 src/main.cpp 的 function,請記得在 header (src/main.h) 裡定義 function

baseproject's People

Contributors

danny50610 avatar dennis30401 avatar jason-777 avatar jyhsu2000 avatar

baseproject's Issues

使用案例規格

TO ALL:
薛硯澤 | 沒什麼太大問題
鄭皓尹、吳東祐 | 後置條件要補一下喔

活動圖

to all:
鄭皓尹 | 是否顯示目標、實際作息圖表的選擇應該是不用join的,可以把選擇資料呈現方式改菱形,選完之後直接指到查詢資料是否為空
薛硯澤 | 沒什麼問題
吳東祐 | 進行身分驗證是菱形 顯示分享成功之後要有個結束雙圈喔(有開始要有結束呀~)

test case

可以告訴我會顯示什麼文字訊息喔~

穩健圖

entity不會互連喔
輸入時間規則應該是控制元件?
輸入圖表設定資料怎麼會是圈圈?

使用案例圖

分享社群的部分還是有跟使用者互動,所以還是要接一下
阿如果你們要把分享功能刪掉記得更新+通知我一下

需求規格書

寫得很詳細,請繼續保持(拍手拍手
期待你們做出東西

序列圖

to all:
穩健圖的元件沒畫
+
應該不可能只有系統吧?

序列圖

to all:
穩健圖的元件沒畫
and
應該不可能只有系統吧?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.